JsAccessibleTypes

A registry of types that are accessible from JavaScript.

It can be used to grant access to the types that cannot be made accessible for JavaScript via the JsAccessible annotation, such as core Java classes.

The rules for making a type accessible from JavaScript are just the same as for the JsAccessible annotation.

This class does not include the types that are made accessible from JavaScript via the JsAccessible annotation. The methods of this class cannot be used to add, remove, or check accessibility for a type annotated with the JsAccessible annotation.

Since

7.20

Functions

Link copied to clipboard
open fun isAccessible(type: Class<out Any>): Boolean
Indicates whether the type is made accessible to JavaScript using this class.
Link copied to clipboard
open fun makeAccessible(publicTypes: Array<Class<out Any>>)
Adds the publicTypes to the types that are accessible from JavaScript.
Link copied to clipboard
open fun makeInaccessible(publicTypes: Array<Class<out Any>>)
Removes the publicTypes from the types that are accessible from JavaScript.